package com.yhs.YShop.elastice.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.yhs.YShop.model.Commodity;


public interface CommodityService {
	long count();

	Commodity save(Commodity commodity);

	void delete(Commodity commodity);

	Iterable<Commodity> getAll();

	List<Commodity> getByName(String name);

	Page<Commodity> pageQuery(Integer pageNo, Integer pageSize, String kw);
}
